﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using Autofac.Extras.CommonServiceLocator;
using Microsoft.Practices.ServiceLocation;

//@快樂乞丐王
namespace AutofacDemo
{
    public class Program
    {
        static void Main(string[] args)
        {
            //初始化
            IocInitialize_1 iocini = new IocInitialize_1();
            iocini.Initialize();
            for (int i = 0; i < 10; i++)
            {
                //测试
                dosomething ds = new dosomething();
                ds.DoStuff();
            }
            Console.ReadLine();
        }
    }


}
